/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bu.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.bu.entity.BuSupplier;
import com.thinkgem.jeesite.modules.bu.entity.SelectEntity;
import com.thinkgem.jeesite.modules.bu.dao.BuSupplierDao;

/**
 * 单表生成Service
 * @author ThinkGem
 * @version 2018-08-26
 */
@Service
@Transactional(readOnly = true)
public class BuSupplierService extends CrudService<BuSupplierDao, BuSupplier> implements IBuSupplierService{

	@Resource
	private BuSupplierDao buSupplierDao;
	
	public BuSupplier get(String id) {
		return super.get(id);
	}
	
	public List<BuSupplier> findList(BuSupplier buSupplier) {
		return super.findList(buSupplier);
	}
	
	public Page<BuSupplier> findPage(Page<BuSupplier> page, BuSupplier buSupplier) {
		return super.findPage(page, buSupplier);
	}
	
	@Transactional(readOnly = false)
	public void save(BuSupplier buSupplier) {
		super.save(buSupplier);
	}
	
	@Transactional(readOnly = false)
	public void delete(BuSupplier buSupplier) {
		super.delete(buSupplier);
	}

	@Override
	public List<SelectEntity> findSelectList() {
		return buSupplierDao.findSelectList();
	}
	
}